package com.wjyf.reducing_bento.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wjyf.reducing_bento.model.dto.OrderIndentDto;
import com.wjyf.reducing_bento.model.entity.IndentBean;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wjyf.reducing_bento.model.vo.IndentInfoVo;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author wjyf
 * @since 2023-03-14 08:36:33
 */
public interface IndentService extends IService<IndentBean> {

    boolean order(OrderIndentDto orderIndentDto, HttpServletRequest request);

    Page<IndentInfoVo> getPage(Long current, Long pageSize, Long uId, Integer flag);

    Map<String, Long> getAnalyseMap();

    boolean cancelIndent(Long inId);

    /**
     * 管理员确认订单
     * @param inId
     */
    void confirmIndent(Long inId);
}
